home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Add-Ons / MPW / MPW dmake 4.0 / mac / config.mk < prev    next >
Encoding:
Text File  |  1995-09-18  |  1.3 KB  |  48 lines  |  [TEXT/MPS ]

  1. # This is an OS Mac specific configuration file
  2. #   It assumes that OBJDIR, TARGET and DEBUG are previously defined.
  3. #   It defines  CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
  4. #   It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
  5. #
  6.  
  7. STARTUPFILE = :$(OS):startup.mk
  8.  
  9. CPPFLAGS    = $(CFLAGS)
  10. LDOBJS      = $(CSTARTUP) :$(OBJDIR):{$(OBJECTS:f)}
  11. LDARGS      = $(LDFLAGS) -o $@ $(LDOBJS) $(LDLIBS)
  12.  
  13. # Debug flags
  14. DB_CFLAGS   = -sym on 
  15. DB_LDFLAGS  = -sym on
  16. DB_LDLIBS   =
  17.  
  18. # NO Debug flags
  19. NDB_CFLAGS  = -sym off
  20. NDB_LDFLAGS = -sym off
  21. NDB_LDLIBS  =
  22.  
  23. # Local configuration modifications for CFLAGS.
  24. CFLAGS     += -I :$(OS) -d _MPW -s $(<:b)
  25. LDFLAGS    += -w -c 'MPS ' -t MPST
  26.  
  27. # Since we writing out what files we want to execute, we can't use .SETDIR
  28. # to specify the files to compile in the Mac directory.
  29. # Instead, we copy the files to the (top-level) current directory and compile
  30. # them there.
  31. %.c : ":$(OS):$$(@:f)"
  32.     duplicate -y $< $@
  33.  
  34. %.c : ":dbug:dbug:$$(@:f)"
  35.     duplicate -y $< $@
  36.     
  37. # Common Mac source files.
  38. OS_SRC = arlib.c bogus.c dirbrk.c directry.c environ.c main.c rmprq.c \
  39.          ruletab.c tempnam.c tomacfil.c
  40. .IF $(SHELL) != mpw
  41.    .SETDIR=$(OS) : $(OS_SRC)
  42. .ENDIF
  43. SRC += $(OS_SRC)
  44.  
  45. # Set source dirs so that we can find files named in this
  46. # config file.
  47. .SOURCE.h : $(OS)
  48.